package BasicThread;

public class DeamonThread extends Thread{
	public void run()
	{
		if(Thread.currentThread().isDaemon()){
			System.out.println("Thread is Deamon..");
		}
		else{
			System.out.println("Thread is user thread..");
		}
	}
	public static void main(String[] args) {
		DeamonThread d1 = new DeamonThread();
		DeamonThread d2 = new DeamonThread();

		d1.setDaemon(true);
		d1.start();
		d2.start();
	}


}


